home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 697 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. From: "Jon.Cassorla" <cassorla@casey.columbiasc.ncr.com>
  2. Message-ID: <Do7nuy.HsF@ncrcae.ColumbiaSC.ATTGIS.COM>
  3. X-Original-Date: Wed, 13 Mar 1996 14:49:46 GMT
  4. Path: in2.uu.net!bounce-back
  5. Date: 13 Mar 96 15:04:23 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: stack variables and new constructor
  9. Organization: AT&T Global Information Solutions, Columbia SC
  10. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  11.     iQBFAgUBMUbkBuEDnX0m9pzZAQHagAF+Oxfl5rsa8gZpF41grhr5lVyRd3+jbSnj
  12.     ezFxYLOy6eqkjpa4KiNgMf7OFzqMeSY/
  13.     =/eq6
  14.  
  15. I'm fairly new to the world of C++ so I didn't know if these questions would
  16. be better asked in this group or in comp.lang.c++.  Anyway, here goes.
  17.  
  18. 1) For a variable that is declared locally to a function of a structure 
  19.    type, is the standard new constructor executed to allocated the 
  20.    memory for the data structure?
  21.  
  22. 2) When using "new" to allocate data space for a variable of a structure 
  23.    type (ie no constructor defined), is the resulting memory space zero'd
  24.    out as a standard?
  25. -- 
  26. Jon Cassorla             email: Jon.Cassorla@ColumbiaSC.ATTGIS.COM
  27. AT&T GIS Server Systems Software
  28. 3325 Platt Springs Road        phone: (803) 939-2070, VP 632-2070
  29. Columbia, SC 29170        FAX:   (803) 939-7317
  30. ---
  31. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  32. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  33. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  34. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  35. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  36.